在运行时加载嵌入在DLL中的WPF控件(Loading a WPF control embedded in a DLL in runtime) | 您所在的位置:网站首页 › wpf loading图片 › 在运行时加载嵌入在DLL中的WPF控件(Loading a WPF control embedded in a DLL in runtime) |
在我的WPF项目中,我有一个包含几个WPF UserControl的DLL。 我希望,在运行时,能够检查数据库中的参数(已经实现)并根据该参数(这是一个字符串),以便能够将特定的UserControl加载到我的View。 UserControl实际上是一个Canvas,所以它基本上只是根据数据库条目将正确的Canvas放在View上。 我不知道我是否清楚,所以如果你不理解这个问题,请问我。 感谢所有帮助者! In my WPF project, I have a dll that contains several WPF UserControls. I would like, in runtime, to be able to check a parameter in the database (already implemented) and according to that parameter (which is a string) to be able to load a specific UserControl to my View. The UserControl is actually a Canvas, so it basically just places the correct Canvas on the View according to the database entry. I don't know if I was clear, so please ask me if you didn't understand the question. Thanks to all helpers! |
CopyRight 2018-2019 实验室设备网 版权所有 |